<%@ page import="main.com.entry.User" %><%--
  @author  lk
  DateTime: 2020/6/23 14:42
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>成功</title>
</head>
<body>
<%
    String flag = (String) request.getAttribute("flag");
    String msg = (String) request.getAttribute("msg");
    User user = (User)request.getAttribute("user");
%>
<h2 style="text-align: center"><%=flag%></h2>
<%
    if ("注册失败".equals(flag)) {
%>
错误原因:<p id="wel_reg_msg"><%=msg%></p>
<h2 style="text-align: center"><a href="register.jsp?username=<%=user.getUsername()%>&password=<%=user.getPassword()%>&email=<%=user.getEmail()%>&workplace=<%=user.getWorkplace()%>">重新填写</a></h2>
<%
} else if ("注册成功".equals(flag)) {
%>
<h2 style="text-align: center"><a href="login.jsp">返回登录</a></h2>
<%
    }
%>

</body>
</html>
